/**
 * Copyright 2018-2019 Streamlit Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.balloons > .balloon {
  position: fixed;
  bottom: 0;
  margin-left: -68px; /* Center 136px-wide image */

  /* If modifying the duration, you should also modify Balloons.js */
  animation-duration: 0.3s, 1s, 1s;
  animation-name: wobble, fade, move-up;
  animation-timing-function: ease-in-out, ease-in, ease-in;
  animation-direction: alternate, normal, normal;
  animation-iteration-count: infinite, 1, 1;
  opacity: 0;
}

@keyframes move-up {
  from {
    bottom: 0;
  }

  to {
    bottom: 110vh;
  }
}

@keyframes fade {
  0% {
    opacity: 0;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

@keyframes wobble {
  from {
    transform: translateX(-5vw);
  }

  to {
    transform: translateX(5vw);
  }
}
